Skip to content

Fix release binary version mismatch#13

Open
asabirov wants to merge 1 commit intosync/upstream-mainfrom
fix/release-version-v2
Open

Fix release binary version mismatch#13
asabirov wants to merge 1 commit intosync/upstream-mainfrom
fix/release-version-v2

Conversation

@asabirov
Copy link
Copy Markdown
Owner

@asabirov asabirov commented Apr 8, 2026

Problem

Release binaries report wrong version. The v0.3.4 binary incorrectly reported 0.3.3 because softprops/action-gh-release does not overwrite existing assets — if a release was created manually with a stale binary first, the CI-built binary upload was silently skipped.

Fix

  • Inject version from the git tag (GITHUB_REF_NAME) into Exports.swift before building, so the binary always matches the tag regardless of what's hardcoded in source

Pass git tag version to Go ldflags so release binaries report correct version.

(reimplements PR #7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant